package com.aixin.project.data;



public enum CourseStatus {
	LIVE("live"),
	FINISH("finish"),
	NOSTART("nostart"),
	UNPAY("unpay"),
	PAYORDER("payorder"),
	UNPAYORDER("unpayorder"),

	WARNCOURSE("wranCourse"),
	NOSTARTCOURSE("nostarCourse");
	
	private final String status;

	private CourseStatus(final String courseStatus) {
		status = courseStatus;
	}

	public static CourseStatus fromString(final String status) {
		for (CourseStatus c : values()) {
			if (status.equals(c.toString())) {
				return c;
			}
		}
		return null;
	}

	@Override
	public String toString() {
		return status;
	}
}
